package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

/**
 * 用戶背包
 */
public class UserBagItem extends DataObject {

	private long userId;

	private int goodsId;

	private long num;

	private long modifyTime;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if(this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		if(this.goodsId != goodsId) {
			this.goodsId = goodsId;
			setUpdateOption();
		}
	}

	public long getNum() {
		return num;
	}

	public void setNum(long num) {
		if (this.num != num) {
			this.num = num;
			setUpdateOption();
		}
	}

	public long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(long modifyTime) {
		if(this.modifyTime != modifyTime) {
			this.modifyTime = modifyTime;
			setUpdateOption();
		}
	}
}
